package helipay.api.service.impl;

import helipay.api.common.Context;
import helipay.api.dao.UserDao;
import helipay.api.model.Users;
import helipay.api.service.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;

/**
 * 
 * @author Swing.Lu
 * @date   2015-7-20
 */
@Service
public class BaseServiceImpl extends Context implements BaseService {

    @Autowired
    private UserDao userDao;

    @Override
    public Users getUser(Integer id) throws SQLException {
        return userDao.get(id);
    }
}
